package online.longzipeng.cinemasys.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import online.longzipeng.cinemasys.dto.type.TypeQueryResponse;
import online.longzipeng.cinemasys.entity.Type;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lzp
 * @since 2021-04-09
 */
@Repository
public interface TypeMapper extends BaseMapper<Type> {

    /**
     * 条件查询带分页
     */
    IPage<TypeQueryResponse> getListPage(Page<TypeQueryResponse> page,  @Param(Constants.WRAPPER) Wrapper<TypeQueryResponse> qw);

    Type findById(Long id);

}
